﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JiraGenCommon.Model;

namespace JiraGenCommon.Helpers
{
    public sealed class JiraHelper
    {
        public static JiraTask CreateJiraTask(string project, string summary, string des, string assignee, string devEstimate, string issueType,
            int rowNumber, string jiraKey)
        {
            var task = new JiraTask
            {
                TaskKey = Guid.NewGuid().ToString(),
                Project = project,
                Summary = summary,
                Description = des, 
                Assignee = assignee, 
                DevEstimate = devEstimate,
                IssueType = issueType,
                RowNumber = rowNumber,
                JiraKey = jiraKey
            };

            return task;
        }
    }
}
